package com.yswy.domain.common.util;

import java.math.BigDecimal;

public class MoneyUtils {

    public static String getPriceString(Double price){
        BigDecimal value = new BigDecimal(price).setScale(2,BigDecimal.ROUND_HALF_DOWN);
        BigDecimal noZeros = value.stripTrailingZeros();
        String result = noZeros.toPlainString();
        return result ;
    }

}
